package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.PbeEntity;
import com.css.fxfzypg.modules.baseData.queryParams.PbeQueryParams;
import com.css.fxfzypg.modules.baseData.vo.PbeEntityVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-11 9:56
 */
public interface PbeRepository {


    PbeEntity findById(String id);

    PbeEntity savePbe(PbeEntity pbeEntity);

    PbeEntity updatePbe(PbeEntity pbeEntity);

    void deletePbe(List<String> ids);

    Page<PbeEntity> getAllPbeByParams(PbeQueryParams queryParams);

    List<PbeEntity> exportExcel();

    void importExcel(List<PbeEntity> pbeEntities);

    PbeEntity fingPbeByPbeId(String pbeId);

    List<PbeEntity> getPbeByInfluenceflieId(String id);

    List<PbeEntityVO> getPbe2ByInfluenceflieId(String id);

    List<PbeEntity> getPbeInfo(String prefecture, String code,String taskId);

    List<PbeEntity> getPbeInfo1(String taskId);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);

    List<PbeEntityVO> getPbe2ByInfluenceflieIdAndTaskId(String influencefliedId, String taskId);
}
